/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Arreglos;

/**
 *
 * @author jgutierrez
 */
import java.util.Arrays;
public class Practica3 {
    public static void main(String[] args){
        String[] nombres = {"Miguel","Maria","Alberto","Fernando","Alejandro","Rosa","Evaristo",
                            "Bernardo","Francisco","Homero","Cristina","Carlos","César"};
        System.out.println("El orden original es: ");
        for (int i = 0; i < nombres.length; i+=1) {
            System.out.print(i + "  " + nombres[i] + " | ");
        }
        Arrays.sort(nombres);
        System.out.println("El orden modificado es: ");
        for (int i = 0; i < nombres.length; i+=1) {
            System.out.print(i + "  " + nombres[i] + " | ");
        }
          
    }
    
}
